From 35d1c20b85156eea6b6c3af32b6bad7b9caf6315 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 2 May 2014 10:51:32 +0200 Subject: [PATCH] x86/EPT: also force EMT re-evaluation if pinned ranges change This was inadvertently left out of aa9114ed ("x86/EPT: force re-evaluation of memory type as necessary"). Note that this intentionally doesn't use memory_type_changed(): Changes to the pinned ranges are independent of IOMMU presence, which that function uses to determine whether to call the underlying p2m_memory_type_changed(). Signed-off-by: Jan Beulich Acked-by: Kevin Tian Reviewed-by: Tim Deegan --- xen/arch/x86/hvm/mtrr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/hvm/mtrr.c b/xen/arch/x86/hvm/mtrr.c index 98a4f34793..0ec38fcc21 100644 --- a/xen/arch/x86/hvm/mtrr.c +++ b/xen/arch/x86/hvm/mtrr.c @@ -651,6 +651,7 @@ int32_t hvm_set_mem_pinned_cacheattr( rcu_read_unlock(&pinned_cacheattr_rcu_lock); list_del_rcu(&range->list); call_rcu(&range->rcu, free_pinned_cacheattr_entry); + p2m_memory_type_changed(d); return 0; } rcu_read_unlock(&pinned_cacheattr_rcu_lock); @@ -696,6 +697,7 @@ int32_t hvm_set_mem_pinned_cacheattr( range->type = type; list_add_rcu(&range->list, &d->arch.hvm_domain.pinned_cacheattr_ranges); + p2m_memory_type_changed(d); return 0; } -- 2.30.2